from lib.api.Student import sm
from hytest import GSTORE


def suite_setup():
    ret = sm.add_student(username='zxs', realname='中学生', gradeid=1,
                         classid=GSTORE['七一班-id'], phonenumber='123456')
    GSTORE['中学生-id'] = ret.json()['id']


def suite_teardown():
    sm.delete_student(studentid=GSTORE['中学生-id'])
